package Util::Topic::TopicCreate;
use Moose;
use namespace::autoclean;

has 'schema' => (
	is => 'rw',
	required => 1,
	isa => 'DBIx::Class::Schema',
);

sub create {
	my ($self, $biaoti, $neirong, $commented_id, $author_id) = @_;
	my $store = $self->schema->resultset('Topic')->create({
			body => $neirong,
			title => $biaoti,
			comm_item_id => $commented_id,
			author_id => $author_id,
			lupd_user_id => $author_id
			});

}

__PACKAGE__->meta->make_immutable;

1;
